﻿<div>

<h2>JavaScript 代码：</h2>
<textarea name="dp-syntaxhighlighter" class="brush: js; highlight: [5,9,13,14]" >
    
    $(function () {
        var p = $("#p").panel({
            title: "test panel", width: 600, height: 400,
            href: "/",
            iniframe: true
        });

        $("#Button1").click(function () {
            p.panel("refresh", "http://www.baidu.com");
        });

        $("#Button2").click(function () {
            p.panel("options").iniframe = false;
            p.panel("refresh", "panel/useiframe/code.html");
        });
    });

</textarea>
<h2>HTML 代码：</h2>
<textarea name="dp-syntaxhighlighter" class="brush: html; highlight: []" >
    
    <p>
        <input id="Button1" type="button" value="刷新至百度首页" />
        <input id="Button2" type="button" value="刷新至当前功能的源代码展示页面" />
    </p>
    <div id="p"></div>

</textarea>


</div>